package com.easyweb.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.easyweb.dao.UserDao;
import com.easyweb.model.Users;
import com.easyweb.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserDao userDao;

	public int insertUsers(Users user) {
		return userDao.insertUsers(user);
	}

	public int deleteUsersById(Map<String, Object> map) {
		return userDao.deleteUsersById(map);
	}

	public int updateUsers(Users user) {
		return userDao.updateUsers(user);
	}

	public Users getUsersById(Map<String, Object> map) {
		return userDao.getUsersById(map);
	}

	public List<Users> getUsers(Map<String, Object> map) {
		return userDao.getUsers(map);
	}

}
